<%-- 
    Document   : product_detail
    Created on : Mar 12, 2013, 1:40:11 PM
    Author     : SonLK60201
--%>

<%@tag description="product detail form" pageEncoding="UTF-8"%>

<%-- The list of normal or fragment attributes can be specified here: --%>
<%@taglib uri="/struts-tags" prefix="s" %>

<%-- any content can be specified here e.g.: --%>
<h1 class="p">Product Details</h1>
<form action="productdetail.html" method="post">
    <div class="productDetails">
        <div class="productImage">
            <s:iterator value="product.images">
                <img src="<s:property value="url" />" alt="IMAGE OF PRODUCT" />
                <br />
                <s:property value="description" />
                <br />
                <br />
            </s:iterator>

        </div>
        <div class="productInformation">
            <table border="0">
                <tbody>
                    <tr>
                        <td>Product Name:</td>
                        <td><s:property value="product.name" /></td>
                    </tr>
                    <tr>
                        <td>Description</td>
                        <td><s:property value="product.description" /></td>
                    </tr>
                    <tr>
                        <td>Quantity</td>
                        <td><s:property value="product.quantity" /></td>
                    </tr>
                    <tr>
                        <td>Price</td>
                        <td><s:property value="product.price" /></td>
                    </tr>
                    <tr>
                        <td colspan="2"><a href="#"><img src="../resource/images/addcart.png" /> </a></td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div style="clear: both" />
    </div>
</form>

